﻿@page "/binding"

@*
    数据绑定 - 即所见即所得
*@
@*
<input type="text" @bind="Text" @bind:event="oninput"/>
<br />
@Text

@code{
    string? _text;
    string? Text
    {
        get => _text;
        set => _text = value + ",";
    }
}*@











<PasswordEntry @bind-Password="@Password"/>

<br />
你输入的是：@Password

@code{
    string Password { get; set; }
}